<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>留学生管理系统</title>  
        <link rel="stylesheet" href="${path}/css/admin2.css">
        <script>
           var _current_item = "#adminScoreManage";
        </script>
        <style>
        .p-div{
        border:1px solid #9A9A9A;
        width:550px;
        padding:40px;
        margin:auto;
        font-size:20px;
        }
        </style>
        <script type="text/javascript" src="${path}/js/jquery.min.js"></script>
    </head>
    <body>
        <!--header-->
        <div id="mask"></div>
        <div id="header"></div>
        <div id="main">
            <div id="side-menu"></div>
            <div id="container">
                <div id="inner-border">
                <br><br>
                <table class="table table-bordered" id="scoretable">
                                <thead>
                                
                                    <tr> 
                                    	<th>学期</th>
                                    	<th>学号</th>
                                        <th>课程编号</th>
                                        <th>课程名称</th>
                                        <th>学分</th>  
                                        <th>正考/补考</th>
                                        <th>总评成绩</th>
                                        <th>等级</th>
                                    </tr>
                                </thead>
                                <#if stuGrade??>
                                <#list stuGrade as stu>
                                <tbody>
                                    <tr>
                                    	<td>${stu.termValue}</td>
                                    	<td>${stu.sNo}</td>
                                        <td>${stu.courseNo}</td>
                                        <td>${stu.courseName}</td>
                                        <td>${stu.credit}</td>
                                        <#if stu.testType=='1'><td>正考</td>
                                        <#elseif stu.testType=='2'><td>补考</td>
                                        <#else><td>历史成绩</td></#if>
                                        <td>${stu.grade}</td>
                                        <td>${stu.gradeLevel}</td>
                                    </tr>
                                </tbody>
                                </#list>
                                </#if>
                            </table>
           			<button type="button" onclick="window.location.href = '${path}/adminSingleStuScoreManage/print?passportNo=${passportNo}'">打印预览</button>
           			
        		</div>
        		           
            	</div>

        </div>
        
         <div id="footer"></div>
        
        <script type="text/javascript" src="${path}/js/admin-main-appearance.js"></script>
          <script src="${path}/js/amazeui.min.js"></script>
                <!-- DataTables JavaScript -->
        <script src="${path}/bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
        <script src="${path}/bower_components/datatables-plugins/api/fnGetHiddenNodes.js"></script>
        <script src="${path}/bower_components/datatables-plugins/api/fnGetTd.js"></script>
        <script src="${path}/bower_components/datatables-plugins/api/fnGetTds.js"></script>
        <script src="${path}/bower_components/datatables-plugins/api/fnGetColumnData.js"></script>
        <script src="${path}/bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
        <script type="text/javascript">
                                $(document).ready(function () {
                                    $('#scoretable').DataTable({
                                        responsive: true,
                                        ordering: false,
                                        searching: true,
                                        "bLengthChange": false,
                                        "bRetrieve": true,
                                        "bFilter": true//过滤功能

                                    });
                                    
                                     // var passportNo = getCookie("passportNo");
                                     //alert(passportNo);
                                   //var stuName = getCookie("stuName");
                                  // alert(stuName);
                                   
            /* $.ajax({
                    type: "post",
                    url: '${path}/adminSingleStuScoreManage/index',
                    data: {
                        passportNo: passportNo,
                    },
                    datatype: "json",
                    success: function (data) {
                    //alert(JSON.stringify(data));
                    $('#scoretable').DataTable({
                                        responsive: true,
                                        ordering: false,
                                        searching: true,
                                        "bLengthChange": false,
                                        "bRetrieve": true,
                                        "bFilter": true//过滤功能

                                    });
                    }
                                });  */
                                    
                                    })
                                  
        </script>
    </body>
</html>

